<?php /* <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" /> 
<style>
body { background-image: url(/appcamel/images/coupon.jpg); background-repeat: no-repeat; width:100%; height:100%;}
#disc_value {     color: white;    font-size: 59px;    left: 302px;    position: absolute;    top: 64px;}#get_discount{    color: white;    font-size: 37px;    left: 109px;    position: absolute;    top: 117px;}
	
</style><?php /* 
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"> </script>
<script>
function get_discount(code)
{
var key=prompt("Please enter your TP code","");
$.getJSON('http://appcamel.16mb.com/appcamel/index.php?r=ajax/couponAjax&id='+code+'&key='+key, function(data) {
$('#disc_value').text(data.disc_value);
});
}
</script>
</head>*/ ?>
<body ><img src="http://appcamel.16mb.com/appcamel/images/coupon.jpg" alt="" width="100%" height="100%" border="0" />
<span id="disc_value" style="color: white;
    font-size: 130%;
    left: 39%;
    position: absolute;
    top: 13%;">
	<?php if ($model->ready==1) {echo $model->discount_value."%";} else 
{
echo CHtml::link("Enter TP key","http://appcamel.16mb.com/appcamel/index.php?r=PushBack/ready&id=".$model->id);
//array('PushBack/ready','id'=>$model->id)
//echo "<a href=\"http:\/\/appcamel.16mb.com\/appcamel\/index.php?r=PushBack\/ready&id=".$model->id.">\"Enter TP key\"<\/a>";
} 
?></span>
<span id="date_expiry" style="  color: white;
    font-size: 200%;
    left: 26%;
    position: absolute;
    top: 78%;
	z-index=25;"><?php echo date("d-m-Y",strtotime($model->date_create))?></span>
<?php /*
</body>
</html> */ ?>